<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/cases/collegial/";  //应用的地址名
String regEditActionName = basePath+"CaseSourceCollegial_regEdit.action";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>市局合议台账添加或编辑</title>
<script type="text/javascript">
<!--
           $(function(){
             
               $('#commitDate').validatebox({
                   required:'true',
                   missingMessage:'请选择提交合议时间'
               });
               $('#endDate').validatebox({
                   required:'true',
                   missingMessage:'请选择合议终结时间'
               });
               $('#mainDispute').validatebox({
                   required:'true',
                   missingMessage:'请填写主要争议',
                   validType:'length[1,1000]'
               });
	           //点击添加按钮操作
			   $('#addBtn').click(function(){
                  $('#editForm').submit();
	            });
	            //表单验证及提交处理操作
	           $('#editForm').form({
			        url:'<%=regEditActionName%>',
			        onSubmit: function(){
			           if($(this).form('validate')){
			                 $.util.showLoading();
			                 $('#operateWindow').window('close');
                            return true;
			             }else{
			                return false;
			             }
			        },
			        success:function(data){
			            $.util.removeLoading();
                        returnOptMsg(data);
			        }
				});
	            
           });
//-->
</script>
  </head>
  
  <body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
    <s:form action="editForm" method="post">
    <s:hidden name="po.vcId"/>
    <s:hidden name="po.caseId"/>
    <s:hidden name="po.registerPerson"/>
    <s:hidden name="po.registerDeptId"/>
    <s:hidden name="po.registerDate"/>
	<table align="center" class="tb_add_th" width="100%">
		<tr><th height="35px;">案源编号:</th><td><s:hidden  name="po.caseNumber" /><s:property value="po.caseNumber"/></td>
		    <th>涉案企业:</th><td><s:hidden   name="po.enterprice" /><s:property value="po.enterprice"/></td>
		</tr>
		<tr></tr>
		
		
		<tr><th height="35px;">提交合议时间:</th>
		<td><input type="text" id="commitDate"  name="po.commitDate" value="<s:date name="po.commitDate" format="yyyy-MM-dd"/>" class="Wdate" readonly="true" style="width:120px;"/></td>
		    <th>合议终结时间:</th><td><input type="text" id="endDate"  name="po.endDate"  value="<s:date name="po.endDate" format="yyyy-MM-dd"/>" class="Wdate" onclick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd HH:mm'})" readonly="true" style="width:120px;"/></td>
		</tr>
		<tr></tr>
		<tr><th>主要争议:</th><td colspan="3"><s:textarea id="mainDispute"  name="po.mainDispute" style="width:400px;height:200px;"/></td></tr>
		<!-- 
		<tr><th height="30px;">是否按合议纪要处理处罚:</th><td colspan="3"><s:radio list="#{1:'是','0':'否'}" name="po.punishmentDeal"/></td></tr>
		 -->
	</table>    
   </s:form>
  </body>
</html>

